package com.fairytask.screen
{
	import citrus.ui.starling.LifeBar;
	
	import starling.display.DisplayObject;
	import starling.display.Sprite;
	import starling.events.Event;
	import starling.utils.AssetManager;

	/**
	 * 主界面 
	 * @author game
	 * 
	 */	
	public class MainScreen extends Sprite
	{
		private static var _instance	:MainScreen;
		private var battleScreen:BattleScreen;
		public function MainScreen()
		{
			super();
			this.addEventListener(Event.ADDED_TO_STAGE,onAddTo);
		}
		
		/**
		 * 添加舞台后 
		 * @param evt
		 * 
		 */
		private function onAddTo(evt:Event):void
		{
			battleScreen	=	BattleScreen.instance;
			this.addChild(battleScreen);
		}
		
		public static function get instance():MainScreen
		{
			if(null==_instance)
			{
				_instance	=	new MainScreen();
			}
			return _instance;
		}
	}
}